package com.deadmosquitogames.notifications;

import android.app.Notification;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.Keep;
import androidx.core.app.NotificationManagerCompat;
import com.facebook.appevents.internal.ViewHierarchyConstants;

@Keep
public class NotificationManagerModern extends BroadcastReceiver {
    @Override // android.content.BroadcastReceiver
    public void onReceive(Context context, Intent intent) {
        int intExtra = intent.getIntExtra("id", 0);
        String stringExtra = intent.getStringExtra(ViewHierarchyConstants.TAG_KEY);
        NotificationManagerCompat.from(context).notify(stringExtra, intExtra, (Notification) intent.getParcelableExtra("notification"));
    }
}